package IO.Buffered.BufferedWrite;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) throws Exception {
        try(
                BufferedWriter bw = new BufferedWriter(new FileWriter("Day06/src/IO/Buffered/BufferedWrite/test.txt"));
        ) {
            bw.write("hello world");
            //换行
            bw.newLine();
            bw.write(98);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
